/*
 * @Author: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @Date: 2025-07-06 20:27:15
 * @LastEditors: 来自火星的码农 15122322+heyzhi@user.noreply.gitee.com
 * @LastEditTime: 2025-09-02 12:35:36
 * @FilePath: /server/workspace/tests/test_scheduler.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"../src/base/Log.h"
#include"../src/base/scheduler.h"
#include"../src/base/fiber.h"
void func1(){
    SERVER_LOG_DEBUG(SERVER_LOG_ROOT())<<"test";
}

int main(){
    Yizhi::Scheduler::ptr s(new Yizhi::Scheduler(3,"test"));
    s->start();
    s->scheduler(func1);
    s->stop();
    SERVER_LOG_DEBUG(SERVER_LOG_ROOT())<<"success";
}